<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/bishe/layui/css/layui.css"  media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<%--<div class="projectTable">
    搜索ID：
    <div class="layui-inline">
        <input class="layui-input" name="id" id="projectPid" autocomplete="off">
    </div>
    <button class="layui-btn" data-type="reload">搜索</button>
</div>--%>
<div class="layui-row">
    <div class="layui-col-md3">
        <a href="/bishe2/project/addProjectPage" class="layui-btn  layui-btn-sm"> <i class=" layui-icon layui-icon-addition">添加 </i> </a>
        <a href="/bishe2/product/downloadExcel" class="layui-btn layui-btn-warm layui-btn-sm"><i class="layui-icon layui-icon-export">导出</i> </a>
    </div>
    <div class="layui-col-md3"></div>
    <div class="layui-col-md3"></div>
</div>
<div class="layui-row">
    <div class="layui-col-md12">
        <form action="/bishe2/project/deleteMany" method="post">
            <table class="layui-table" lay-skin="line">
                <colgroup>
                    <col width="150">
                    <col width="150">
                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                <tr>
                   <th><input type = "submit" value="批量删除" class="layui-btn layui-btn-danger layui-btn-sm"></th>
                    <th>项目编号</th>
                    <th>项目名称</th>
                    <th>开标地点</th>
                    <th>招标人或机构</th>
                    <th>评标日期</th>
                    <th>评标时间</th>
                    <th>评标行业</th>
                    <th>操作</th>
                </tr>
                </thead>

                <tbody>
                <c:forEach var="p" items="${requestScope.list}">
                    <tr>
                        <td><input type="checkbox" name="ids" value="${p.pid}"></td>
                        <td>${p.pid}</td>
                        <td>${p.pname}</td>
                        <td>${p.pplace}</td>
                        <td>${p.ptenderee}</td>
                        <td>${p.pdate}</td>
                        <td>${p.ptime}</td>
                        <td>${p.pindustry}</td>
                        <%--<td>
                            <c:choose>
                                <c:when test="${p.status==0}">
                                    <span class="label label-danger">下架</span>
                                </c:when>
                                <c:otherwise>
                                    <span class="label label-success">上架</span>
                                </c:otherwise>
                            </c:choose>
                        </td>--%>
                        <td>
                            <%--<a class="btn btn-warning btn-xs" href="/MongoShop/product/updatestatus?id=${p.id}">
                                <c:choose>
                                    <c:when test="${p.status==1}">
                                        <i class="fa fa-download">下架</i>
                                    </c:when>
                                    <c:otherwise>
                                        <i class="fa fa-upload">上架</i>
                                    </c:otherwise>
                                </c:choose>
                            </a>--%>
                            <a class="layui-btn layui-btn-danger layui-btn-sm" href="/bishe2/project/deleteProject?id=${p.pid}"  >
                                <i class="layui-icon layui-icon-delete">删除</i>
                            </a>
                            <a class="layui-btn layui-btn-warm layui-btn-sm" href="/bishe2/project/selectForProjectUpdate?id=${p.pid}">
                                <i class="layui-icon layui-icon-edit">编辑</i>
                            </a>
                            <a class="layui-btn  layui-btn-sm" href="/bishe2/project/projectDetails?id=${p.pid}">
                                <i class="layui-icon layui-icon-about">详情</i>
                            </a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </form>
    </div>
</div>

<div class="layui-row">
    <div class="layui-col-md-offset4">
        <table class="table ">
            <tr>
                <%-- 当前页码大于1才可以上一页--%>
                <td>
                    <c:if test="${requestScope.page>1}">
                        <a href="/bishe2/project/projectList?page=${requestScope.page-1}" class="layui-btn    layui-btn-sm">上一页</a>
                    </c:if>
                </td>
                <td>
                    <a class="layui-btn layui-btn-disabled layui-btn-sm">第${requestScope.page}页，共${requestScope.pageCount}页</a>
                </td>
                <td>
                    <c:if test="${requestScope.page<requestScope.pageCount}">
                        <a href="/bishe2/project/projectList?page=${requestScope.page+1}" class="layui-btn   layui-btn-sm">下一页</a>
                    </c:if>
                </td>
            </tr>
        </table>
    </div>
</div>

<script src="/bishe/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->


</body>
</html>